﻿<html> 
<head> 
    <title>豆瓣电台</title> 
    <script type="text/javascript" src="http://img2.douban.com/js/packed_jquery.min0.js"></script> 
    <script type="text/javascript" src="http://img2.douban.com/js/packed_swfobject1.js"></script> 
    <script type="text/javascript" src="http://img2.douban.com/js/packed_douban88.js"></script> 
    <script type="text/javascript"> 
 
$(function(){
    (function(){
        var swfurl='http://douban.fm/swf/30813/radioplayer.swf';
        var params = {wmode:"transparent"},
            flashvars = {uid:'2128665', autoplay:1, host:'http://douban.fm'},
            attributes = {id:"radioplayer", name:"radioplayer"};
        swfobject.embedSWF(swfurl, "radioplayer", "420", "186", "9.0.0","/swf/expressInstall.swf", flashvars, params, attributes); 
        setTimeout(function(){
            var ftip = $('#no_flash_tip'); 
            if(ftip.length){
                ftip.fadeIn();
            };
        }, 6000);
        try{
            if (typeof window.parentSandboxBridge == 'object') {
                var movefunc = window.parentSandboxBridge.movefunc, 
                hideclose = window.parentSandboxBridge.hideclose;
                setTimeout(function(){
                    DBR = window.DBR||{};
                    DBR.rlog = window.parentSandboxBridge.trace;
                    window.ropen = window.parentSandboxBridge.ropen;
                    $('#radioplayer').focus(
                        function(){this.blur()}).mousedown(
                        function(){movefunc()})
                    },100);
            } else {
                setTimeout(function(){$('#radioplayer').focus(function(){this.blur()})},100);
            }
        } catch(e){}
    })();
    window.user_logged_in = true;
    window.ropen = window.open;
    window.DBR = {
        radio_getlist : function(url){
            var radio = document.getElementById('radioplayer');
            if (radio === undefined || radio.list_onload === undefined){
                return 0;
            }
            $.ajax({
                url: url,
                type: 'GET',
                dataType: 'text',
                timeout: 10000,
                error: function(xhr,msg){
                    var res = '';
                    try{
                        res = xhr.responseText;
                    } catch(e){
                        res = e.toString();
                    }
                    msg += ' js_fail ';
                    msg += res.slice(0,80);
                    radio.list_onerror('js_load_fail');
                },
     
                success: function(r){ 
                    radio.list_onload(r);
                }
     
            })
            return 'ok';
        },
        show_login : function(){
            location.href = "http://douban.fm/login?type=simple&redir=/radio";
        },
        rlog : function(log){
            trace(log);
        },
        ropen : window.open,
        except_report : function(reason){
            $.get('http://douban.fm/j/except_report?kind=ra006&env='+navigator.userAgent+'+&reason='+reason)
        },
        settitle : function(name){
            document.title = name == '-' ? '豆瓣电台 - Beta': name+' - 豆瓣电台';
        }
    } //DBR
});
    </script> 
    <style type="text/css"> 
        *{margin:0;padding:0}
        body {   
            overflow:hidden;  
            height:186px;
            width:420px;
            min-width:420px; 
            min-height: 186px;
        } 
        #raout{position:absolute;top:54%;left:50%}
        #rain{position:relative;top:-100px;left:-50%;}
    </style> 
</head> 
<body> 
    <div id="raout"> 
        <div id="rain"> 
            <div id="radioplayer" name="radioplayer"> 
                <span id="no_flash_tip" style="display:none"> 
                    请先安装flash player，<a target="_blank" href="http://get.adobe.com/flashplayer/">官方下载</a> 
                </span> 
            </div> 
        </div> 
    </div> 
</body> 
</html>